package com.shujia.wyh.day25;

public class MyYieldThread extends Thread{
    @Override
    public void run() {
        for(int i=1;i<=300;i++){
            System.out.println(getName()+":"+i);
            Thread.yield();
        }
    }
}
